<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>博客编辑</title>
    <link rel="stylesheet" href="css/common.css">
    <link rel="stylesheet" href="css/blog_edit.css">
    <!-- 引入依赖 -->
    <link rel="stylesheet" href="editor.md/css/editormd.min.css">
    <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
    <script src="editor.md/lib/marked.min.js"></script>
    <script src="editor.md/lib/prettify.min.js"></script>
    <script src="editor.md/editormd.js"></script>
            <script src="js/a.js"></script>


</head>

<body>
    <div class="nav">
        <img src="img/head.jpg" alt="">
        <span class="title">我的博客系统</span>
        <!-- spacer只是占位 -->
        <div class="spacer"></div>
        <a href="blog_list.html">主页</a>
        <a href="blog_edit.htm">写博客</a>
        <a href="logout">注销</a>
    </div>
        <form action="blog" method="post" style="height: 100%;">
            <!-- 整个编辑页的核心 -->
            <div class="blog-edit-container">
                <!-- 标题的编辑区 -->
                <div class="title">
                    <!-- 输入标题的内容 -->
                    <input type="text" id="blog-title" placeholder="在这里输入博客标题" name="title">
                    <input id="submit" type="submit" value="发布文章">
                </div>
                <!-- 正文编辑区 -->
                <div id="editor">
                    <textarea name="content" style="display: none;"></textarea>
                </div>
        </form>
    </div>

    <script>
        var editor = editormd("editor", {
            width : "100%",
            height: "calc(100% - 50px)",
            markdown: "# 在这里写下一篇博客",
            path:"editor.md/lib/",
            saveHTMLToTextarea:true
        });
        getLoginStatus();

    </script>
</body>

</html>